package com.qiyu.tech.tcc.starter.service;

import com.qiyu.tech.tcc.starter.dao.OrderDao;
import com.qiyu.tech.tcc.starter.model.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author linhao
 * @date created in 4:16 下午 2020/11/4
 */
@Service
public class OrderService {

    @Resource
    private OrderDao orderDao;

    public boolean insertOrder(Order order){
        orderDao.insert(order);
        return true;
    }
}
